package com.gaojinqi.sys.modular.rbac.vo;

import com.gaojinqi.base.common.validation.group.Default;
import com.gaojinqi.base.common.validation.group.Insert;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.NotBlank;

/**
 * 角色新增修改参数
 *
 * @author gaojinqi
 * @version 1.0
 * @since 2020年05月19日
 */
@Data
public class RoleSaveVo {

    @ApiModelProperty(value = "角色编码", required = true)
    @NotBlank(message = "请输入角色编码", groups = Insert.class)
    private String role;

    @ApiModelProperty(value = "角色名称", required = true)
    @NotBlank(message = "请输入角色名称", groups = Insert.class)
    private String roleName;

    @ApiModelProperty(value = "描述")
    @Column(columnDefinition = "varchar(128)  COMMENT '描述'")
    private String remark;

    @ApiModelProperty(value = "排序 从小到大排序 默认0")
    private Integer sort;

}
